import request from '@/utils/request'
export function getadvpic(params) {
  return request.get('/ydd_advpos/list', { params })
}
export function getadvpos() {
  return request.get('/ydd_advpos/all')
}
export function getadvimg(params) {
  return request.get('/ydd_advimg/list', { params })
}
export function deladvimg(id) {
  return request.get('/ydd_advimg/del', { params: { id }})
}
export function getlink(params) {
  return request.get('/ydd_link/list', { params })
}
export function deladvpos(id) {
  return request.get('/ydd_advpos/del', { params: { id }})
}
export function addadvpos(data) {
  return request.post('/ydd_advpos/add', data)
}
export function editadvpos(data) {
  return request.post('/ydd_advpos/update', data)
}
export function getadvposdetail(id) {
  return request('/ydd_advpos/rowInfo', { params: { id }})
}
export function deladvlink(id) {
  return request('ydd_link/del', { params: { id }})
}
export function getadvlinkdetail(id) {
  return request('/ydd_link/rowInfo', { params: { id }})
}
export function addadvlink(data) {
  return request.post('/ydd_link/add', data)
}
export function addadvimg(data) {
  return request.post('/ydd_advimg/add', data)
}
export function editadvimg(data) {
  return request.post('/ydd_advimg/update', data)
}
export function editadvlink(data) {
  return request.post('/ydd_link/update', data)
}
export function getadvimgdetail(id) {
  return request('/ydd_advimg/rowInfo', { params: { id }})
}
